import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Login',
        component: () =>import('../views/Login')
    },
    {
        path: '/Info',
        component: () =>import('../views/Info'),
        children:[
            {
                path: '/home',
                component: () =>import('../views/Home')
            },

            {
                path: '/gamemannage',
                component: () =>import('../views/GameMannage')
            },
            {
                path: '/usermannage',
                component: () =>import('../views/UserMannage')
            },
            {
                path: '/ordermannage',
                component: () =>import('../views/OrderMannage')
            },

        ]
    },

]

const router = new VueRouter({
    routes
})

export default router
